hey guys,
I've scoured the net a bunch of times regarding the sensitivity of the preceding-sibling w/ InfoPath. I am including screenshots for reference, however, essentially I have the same problem everyone else has proclaimed. A repeating section needs to autonumber each time it is inserted. The formula I was using is as follows: count(../preceding-sibling::my:PDL/my:HQFR/my:HQ-SubTask/my:SubTaskDeliverables) +1 in a calculated field. when I try to use this formula, I get an error that the field cannot be located. however, if i do this formula: count(preceding-sibling::*)+1 it works fine except that it starts at the number 5 instead of 1. please note the images.... also note, the fields within the 'SubTaskDeliverables' are reference fields if that makes any difference. any help would be greatly appreciated; i am tearing my hair out. also note, that i've copied the xpath and still get the same error. even more curious, i have a similar calculated field with the same formula [for the HQFR section) which works perfectly.