I've never noticed the greyed-out checkbox - but it must a purely cosmetic bug, since I experience no problems in importing a one-record XML.
It wouldn't make any sense anyway: in a FMPXMLRESULT document, the first row cannot contain field names - they must be in the METADATA section. I'd suggest you look elsewhere.
Thanks for your input.. Knowing that you were not seeing the "Don't import First record" checked, I think I have identified the steps to repro the auto-check greyed out of this box
- Create a script
- add an Import Record line
- Check Perform without dialog
- Check specify import order (I used "Update matching records in found set" and "Add remaining data as new records". Click OK and check "perform auto-enter..." then Import.
If you Specify Data Source, Select XML Data, Check "XSL Style sheet" and in File select your XSL, then select Calculation instead of File or HTTP Request in the upper part, than click OK, then if you go back to Specif Import order, You'll see that the "Don't import First Record" is checked and greyed out. No way to import single record file then...
If you leave "Specify Data source" unchecked, or use the options other than calculation for the XML Data Source, the "Don't import first record" will remain unchecked.
This is a bummer because using the calculation allowed me to let the user select the file to upload.
I am sorry if I wasn't clear enough: I do see the greyed-out checkbox, exactly as you describe. I just haven't noticed it until you mentioned it.
So you say you do manage to import XML file with only one record even if this "don't import first record" box is checked and greyed out on your side too. Thanks for the input, I will now investigate my xslt and other possible reasons for the import to not work then!
Didier Monin wrote:
So you say you do manage to import XML file with only one record even if this "don't import first record" box is checked and greyed out on your side too.
I notice that earlier you said:
I used "Update matching records in found set"
This could be the real reason?