Developer forum

Forum » Development » RE: Custom provider mapping error

RE: Custom provider mapping error

Judy Zhang
Reply

Hi,

I have just try to made a custom provider to "Data integration" module. 

Every thing is fine when I create a new activities, data column mappings are also correct. But after I click "Save and close" and try to  open it again, I get  a "

Object reference not set to an instance of an object.

" error at "Dynamicweb.Admin.DoMapping.Page_Load". (001.png) 

 

 

And I made a video her: http://screencast.com/t/RFrsrVlAfGe 

 

Is there anyone can give me more infomation about why I get this error? 

 

 

Best Regards.

Judy

001.png

Replies

 
Jonas Dam
Reply
This post has been marked as an answer

Hi, 

It is 99% sure that something is missing in your provider  code. 

Without having access to your code, I cannot tell what exactly the problem is.

I assume you have a Dynamicweb solution running on your development machine, which you are using to test.

If you add the lines:

 

 

Debugger.Launch();

Debugger.break();

 

You should be able to step through and debug until you find the error in your code that is causing the problem.

It is most likely in either your LoadSettings() method, or one of the GetSchema/OverrideSchema methods, since the problem appears when the provider is being loaded from the XML file. I recommend starting with debugging in these methods.

Regards, Jonas

Votes for this answer: 1
 
Judy Zhang
Reply

Hi Jonas,

Thank you very much! 

Now I found out what went wrong.

I misspelled the node.Name.

Best Regards.

Judy

 
Jonas Dam
Reply

Hi,

I'm glad I could help.

 

/Jonas

 

You must be logged in to post in the forum