I am building a solution in my test environment and I am getting the State code of Status code is invalid when trying to qualify a lead. I have removed the 'In Process' (1) status reason on the opportunity which is what I thought was the issue because when I change the status on the Lead from 'New' (1) to Contacted (2) the process works. Further I have the same set up in production and I am not getting the error.
<Message>System.ArgumentException: 1 is not a valid status code on opportunity with Id bdbc6000-681f-e511-b3f7-0050569e1c91.
I tried to add a new status reason on the opportunity and then in SQL I changed the attributevalue from 100000002 to 1 in the stringmapbase table, I also adjusted the statusmapbase table and the filterstringmap table, but when I publish all of these revert to 100000002.
Is there a way to further find the issue and resolve it?
Thank you,
Mike
*This post is locked for comments