cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KJ20
New Member

Not possible to create FosterID and ShelterID columns

It has turned out completely impossible to create column names of the format <Table_name>ID as experienced when  creating the Foster and Shelter tables for the exercise. First, after providing 'Foster' as the table name and 'FosterID' as the primary column name, I got the following error:


Failed to create entity with logical name pu_foster and object type code -1. Exception: Microsoft.Crm.CrmException: Custom attribute name 'pu_FosterID' cannot be same as the primary key for entity 'pu_foster'. at Microsoft.Crm.Metadata.EntityService.ValidateAttributeNameNotSameAsPrimaryKey(EntityCreateInfo entityInfo, AttributeInfo attributeInfo, ISqlExecutionContext context) at Microsoft.Crm.Metadata.EntityService.ValidateForCreate(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, ExecutionContext context, Boolean useReserveEntity) at Microsoft.Crm.Metadata.EntityService.<>c__DisplayClass70_0.<CreateEntityFromReserve>b__0() at Microsoft.PowerApps.CoreFramework.ActivityLoggerExtensions.Execute[TResult](ILogger logger, EventId eventId, ActivityType activityType, Func`1 func, IEnumerable`1 additionalCustomProperties) at Microsoft.Xrm.Telemetry.XrmTelemetryExtensions.Execute[TResult](ILogger logger, XrmTelemetryActivityType activityType, Func`1 func) at Microsoft.Crm.Metadata.EntityService.CreateEntityFromReserve(IEntityInfo entityInfo, MetadataHelper metadataHelper, Boolean isInSolutionImportMode, ExecutionContext context, Guid& entityId) at Microsoft.Crm.Metadata.EntityService.CreateInternalHelper(EntityCreateInfo entityInfo, MetadataHelper metadataHelper, Boolean shouldCreateOnlyFromReserve, ExecutionContext context)

In the second attempt, I accepted the default primary column name "Name" by just adjusting abit and it was possible to create the table named 'Foster'. Next, under the table columns, the following error came up when attempting to create the 'FosterID' column:

An attribute with the specified name pu_FosterID already exists for entity pu_Foster.

In both cases, no column name 'FosterID' exists under the list of columns. The scenario was repeated when attempting to create the Shelter table.

 

Anyone pls assist me to know what is going on.

 

Thanks.

Joseph.

 

5 REPLIES 5
BCBuizer
Multi Super User
Multi Super User

Hi @KJ20 ,

 

Could it be you have multiple solutions for the Power Up Challenge in your developer environment? This may cause conflicts.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

No @BCBuizer , this is the only solution that I created yesterday. You've also made me recheck and have confirmed that it's within my own environment. 100% sure that there are no such columns in the other solutions we created under the learning exercises. Could the names be part of dataverse/dynamics standard tables? or could they be auto-generated (and hidden) for table auditing purposes? 

BCBuizer
Multi Super User
Multi Super User

Hi @karumaj ,

 

Can you please share the Columns overview from the solution explorer to verify some things?

 

Yes, columns do get creted automatically, but they will be visible in the abovementioned view, for instance:

BCBuizer_0-1720252999897.png

 



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
karumaj
Frequent Visitor

 image.pngThis is it. It's then now confirmed that there's a default one with the format <Table name>ID 

BCBuizer
Multi Super User
Multi Super User

Hi @KJ20 ,

Has this issue been resolved? If so, please mark the post that was key to the solution by pressing the "Accept as Solution" button so it's easier to find for other members of the community.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Announcements

Important Update | Power Up Community READ ONLY July 22 – July 28

Dear Community Members, As you may have read, the Power Platform communities are transitioning to a new platform and to access will be set to READ-ONLY mode during the transition. Key DatesTo ensure current learners have adequate support in the final week of the cohort, the Power Up Program Community will transition to READ-ONLY mode starting July 22nd, the platform will transition to READ-ONLY mode until July 28th. Power Apps, Power Automate, and Power Pages communities will be read-only July 16-22, 2024.During this period, members will not be able to start new threads or Kudo, Comment, or Reply to any posts, but will be able to search and review past threads or solutions. On July 22nd, please be on the lookout for a message sent to the email address registered on your community profile. This email is crucial as it will contain your unique code and link to register for the new platform encompassing all of the communities. Learners will be able to sign in to the new Power Up Program community experience, starting July 29th. If you registered for community using your learnwithpowerup account, you will not receive an email, but should be able to sign in successfully if you are signed in to My hub.  If you need help with your community account, please submit a request at aka.ms/PPCommSupport We appreciate your understanding and cooperation during this transition. Stay tuned for the exciting new features and a seamless community experience ahead! 

Learn what to expect in the Power Up Program

Since its inception in 2022, the Power Up Program has evolved based on feedback from learners and Microsoft Partners and customers. Today's Power Up learners can expect to learn the fundamentals of Microsoft Power Platform in the accelerated seven-week, video-based Power Up Maker course.   Hear from Principal Program Manager, Dimpi Gandhi to discover the latest enhancements and meet the Microsoft MVPs, Rory Neary and Charlie Phipps, who partnered with the Microsoft Power Up Program to create the Power Up Maker course to guide learners to use the Microsoft Power Platform to develop custom applications, build dazzling report dashboards, or create efficiencies through automation.  

Welcome to the Power Up Program Community

The Power Up Program is a free upskilling program where nontechnical people can learn the fundamentals of Microsoft Power Platform. The Power Up Maker course is a seven-week self-paced virtual learning plan that include video-based objectives featuring Power Apps, Power BI and Power Automate.  As a member of the Power Up Community, you can grow your skills and build connections. You can post questions to get help with the curriculum and hands-on exercises from experts and peers in the product boards.  Check out the Community Information & Feedback board to find help or provide feedback with the community experience, and please take time to post in the Social board to tell us more about yourself. If you're new to the Power Up Program and looking for information to register. You can sign up at PowerUp.Microsoft.com.

Users online (482)