Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have an error when I want to update an element in an external SharePoint list :

"Application error when access /_layouts/15/listform.aspx, Error=Impossible de trouver le formulaire de modification par défaut pour la liste ListePersonneV2". ListePersonneV2 is my external SharePoint list who is connected to a DB Oracle. I have written methods DELETE, READITEM and READLIST and I don't have any problem for these.

Here you have the XML code of the function Update :

<Method Name="Update">
              <Parameters>
                <Parameter Name="personne" Direction="In">
                  <TypeDescriptor Name="Personne" IsCollection="false" TypeName="BDCtestProject.BdcModel.Personne, BdcModel">
                    <TypeDescriptors>
                      <TypeDescriptor Name="CODE" IdentifierName="CODE" IsCollection="false" TypeName="System.Int32" UpdaterField="true" />
                      <TypeDescriptor Name="NOM" IdentifierName="NOM" TypeName="System.String" UpdaterField="true" />
                      <TypeDescriptor Name="PRENOM" IdentifierName="PRENOM" TypeName="System.String" UpdaterField="true" />
                      <TypeDescriptor Name="ADRESSE" IdentifierName="ADRESSE" TypeName="System.String" UpdaterField="true" />
                      <TypeDescriptor Name="NUM_TELEPHONE" IdentifierName="NUM_TELEPHONE" TypeName="System.String" UpdaterField="true" /></TypeDescriptors></TypeDescriptor></Parameter>
              </Parameters>
              <MethodInstances>
                <MethodInstance Name="Update" Type="Updater" />
              </MethodInstances></Method>

The error appears when I try to alter an element on a SharePoint external list, and the error is described in the log file.

share|improve this question
1  
Have you forgot to add the XML code in the question? You could edit it if you need. Also, it would help if you leave a basic translation of the error message for people that doesn't speak French. –  SPArchaeologist Apr 9 '13 at 10:10
    
You forgot to mark your XML as code in editor (select it and press "{ }" button). That's why it is invisible. I made this change. Please, approve it to allow others to see XML. –  MikhailSP Apr 10 '13 at 14:13
add comment

2 Answers 2

XML Code of Update method :

<Method Name="Update">
              <Parameters>
                <Parameter Name="personne" Direction="In">
                  <TypeDescriptor Name="Personne" IsCollection="false" TypeName="BDCtestProject.BdcModel.Personne, BdcModel">
                    <TypeDescriptors>
                      <TypeDescriptor Name="CODE" IdentifierName="CODE" IsCollection="false" TypeName="System.Int32" UpdaterField="true" />
                      <TypeDescriptor Name="NOM" IdentifierName="NOM" TypeName="System.String" UpdaterField="true" />
                      <TypeDescriptor Name="PRENOM" IdentifierName="PRENOM" TypeName="System.String" UpdaterField="true" />
                      <TypeDescriptor Name="ADRESSE" IdentifierName="ADRESSE" TypeName="System.String" UpdaterField="true" />
                      <TypeDescriptor Name="NUM_TELEPHONE" IdentifierName="NUM_TELEPHONE" TypeName="System.String" UpdaterField="true" /></TypeDescriptors></TypeDescriptor></Parameter>
              </Parameters>
              <MethodInstances>
                <MethodInstance Name="Update" Type="Updater" />
              </MethodInstances></Method>

Error=Impossible de trouver le formulaire de modification par défaut pour la liste ListePersonneV2" means "impossible to find the default updater method form for the list ListePersonneV2"

share|improve this answer
    
Error in english : "Failed to find the default form for updating external SharePoint list" –  Mr. NKA Apr 11 '13 at 9:04
    
I had the same problem with the function 'Create' and I have resolved it. I have added a form whith SharePoint Designer, it's name is 'NewForm.aspx' whith the option new element and now I can add an element on my list. But the problem is that SharePoint Designer doesn't accept that I add an other form for editing elements. –  Mr. NKA Apr 11 '13 at 12:34
    
Hello, Today I have deleted my model that was deployed on SharePoint. I have regenerated the solution of my project and deployed the solution and now, SharePoint Designer has created the EditForm.aspx. So I can alter an element from a list, however, when I want to alter an element in my external list SharePoint redirects me on an empty form. Thank you for your help. –  Mr. NKA Apr 15 '13 at 8:02
add comment

I can see that at least order of the closing tags in XML is incorrect. If it doesn't help, please let us know.

Your part of XML:

<TypeDescriptor Name="NUM_TELEPHONE" IdentifierName="NUM_TELEPHONE" TypeName="System.String" UpdaterField="true" /></TypeDescriptors></TypeDescriptor></Parameter>

You don't need to close "TypeDescriptor" tag as it is self-closed ("/>"). So it should be:

<TypeDescriptor Name="NUM_TELEPHONE" IdentifierName="NUM_TELEPHONE" TypeName="System.String" UpdaterField="true" /></TypeDescriptors></Parameter>
share|improve this answer
    
It doesn't help, because I need to close "TypeDescryptor" tag, I open it in this line : <TypeDescriptor Name="Personne" IsCollection="false" TypeName="BDCtestProject.BdcModel.Personne, BdcModel"> –  Mr. NKA Apr 11 '13 at 7:36
    
Ooops, sorry, you are right. I missed it. Unfortunately, I haven't worked with updater for a long time, but as I remember you don't need IdentifierName attribute on all the descriptors and it should be only on the ID (Code? in your case). Let me know if the problem is not in Identifiers –  MikhailSP Apr 11 '13 at 8:05
    
ClientBDCModel.bdcm : Entity name : Client Identifiers : CODE (int) , NOM (String) , ADRESSE (String) Methods : ReadItem, Create, ReadList, Delete, Update Function Update : return : void - parameter : client, - type Descriptor Client -> has 3 types descryptors --> when I delete one type descriptor, there is a compilation error –  Mr. NKA Apr 11 '13 at 11:28
    
I mean as I understand you don't need to mark all TypeDescriptors as Identifiers (not all of them are ID). For instance, here: msdn.microsoft.com/en-us/library/ee559296(v=office.14).aspx IdentifierName attribute is defined only for CustomerId. –  MikhailSP Apr 11 '13 at 11:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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