Reputation: 39118
I'm importing appointments and I get this error on all the instances.
State code is invalid or state code is valid but status code is invalid for a specified state code.
According to the values suggested in the dropdown, Completed is OK to use. All my entries have that in the column for StatusReason. Should I force the numerical value as specified here?
How can I resolve this stupid issue?
Further on, CRM says that 3 isn't going to work.
3 is not a valid status code for state code AppointmentState.Open on appointment.
However, I can't specify that the appointment is closed, because there's no such column (for Status or StateCode). Weird... Shouldn't that be inferred from the value I specify?!
Upvotes: 1
Views: 2119
Reputation: 6558
I ran into a similar issue when we moved from Salesforce to CRM 2011. Going from memory, here are the steps I did:
ShouldBeClosed
- I just used a text field.yes
for appointments which should be closed.ShouldBeClosed = yes
and on the results I ran the workflow created in the previous step.Once finished, you can remove the ShouldBeClosed
field and the workflow which closes the record
Upvotes: 2