Announcements
No record found.
I am getting below error when try to export the entity to BYOD and it is working fine for Excel and CSV.
[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'RECID#2'.Object Server Azure:ResultsResults Cannot select a record in Entity. The SQL database has issued an error.
Any Idea?
Thanks,
Raziq
Which entity you are trying to publish ?
Hi Ali,
Does the entity have mutliple data sources in it. Take a look at link below where the similar issue was discussed.
community.dynamics.com/.../dataentity-export-project-error-related-to-recid-2
Looks like an entitykey issue. Had this problem multiple times.
Irrespective of whether you u have added multiple data sources, ensure that the EntityKey is set on the data entities and then update the staging table. Looks like there is an entitykey missing on your data entity. Looks like the datasource that's been included refers to tables where the primary key is set to SurrogateKey.
Regards,
Navneeth Nagrajan| Dynamics 365 Technical Consultant
if it was working earlier and no change in entity, then try republishing the entity to BYOD and should then compare the schema and then export data
pls suggets
Hi, Is it a custom entity or standard entity? Which PU version are you using? Is "Skip staging" parameter set to "Yes"? I believe I had the same kind of issue before and it was related to some data sources or fields disabled by configuration keys. In some cases setting "Skip staging" to "No" could help or used as workaround, but it depends how much data you are exporting per run to BYOD.
It is a customized entity with multiple datasources.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 266 Super User 2026 Season 2
Aayush Tiwari 217
Subra 164 Super User 2026 Season 2