I'm trying to complete an Electronic Reporting format that's tested and that can write out an XML-file without a problem in draft mode. I get no errors or warnings when running the validation. But when I try to complete the format, I get this error message:
"Value cannot be null. Parameter name: key"
I can't find any discussion on this particular error message. Only for when the parameter name is something different than key.
The changes I made recently were adding an XML-segment to the format and a string under it. I've cleared their formulas, doesn't matter, I set them to false, and whether they have formulas or not I can't complete the format and instead get the error message above.
The other change I made was changing the model that the format is based on. I've tried changing version and it doesn't seem to help.
When I run compare between the latest completed format and the draft version, the compare never seems to finish. So far I've given up after about 15 minutes. This last run has now been going for 30 minutes.
I tried Get this version from the last completed version and redid the changes to the draft version, but still it wouldn't solve the issue.
Update: When I changed the format by getting the previous version, i.e. two versions before the draft version, the problem disappeared. So it appears something was changed in the previous version which introduced the problem. They are both based on the same model version.
To sum it up: computer says no.
Does anyone have any insights on what this error message might refer to?
Update: I have now located that the issue appears/disappears as I change which model version is applied. It seems a bit strange because the two model versions are from 2023-2024, but they haven't been used for this invoice format so maybe that shouldn't be surprising.
Update: When importing the configurations to another environment, the problem doesn't appear. They were not all imported in chronological order, not sure if that could matter. Also I did a rebase of the model mapping in that environment, which may have solved something.