1

I'm trying to migrate an application from a sandbox to a sfdx application. I am working through the errors and I am running into one that I don't understand.

Invalid filter: Id: U#3d3.7ff (RecordType), Name: RecordTypeId, Error: Invalid record type name or ID: Other Account Type. (432:13)
Invalid filter: Id: U#3ce.7ff (RecordType), Name: RecordTypeId, Error: Invalid record type name or ID: Agent. (455:13)
Invalid filter: Id: U#3ce.7ff (RecordType), Name: RecordTypeId, Error: Invalid record type name or ID: Agent. (3:13)

"Other Account Type" is an Account Record Type that I imported from the package that I am building. All the googling shows that the error section of the error. Invalid record type name or ID and that has something to do with the user profile permissions. I cannot give that user permissions due to the fact that it isn't in my strach org yet. I feel like something I'm overlooking is the start of the error, Invalid filter, but I don't know where to start looking.

0

I solved my issue by...

Going to the sratch org and adding a record type of the name that was invalid. In my case, it was Other Account Type. I found out where the Record Type should be by looking at the sandbox's filter that had the Record Type. I then copied what it looks like from my working sandbox into my scrach org. Oncee the error was gone, I pulled the working content to my code to not have that issue occur in the future sratch orgs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.