<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>access_model_application_bind() returns NRF_ERROR_NOT_FOUND?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27494/access_model_application_bind-returns-nrf_error_not_found</link><description>When calling access_model_application_bind() , NRF_ERROR_NOT_FOUND is returned? 
 I have had this working before, but after adding another server model I am getting the error. 
 Here is program leading up to the error, I imagine it is something around</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Nov 2017 11:22:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27494/access_model_application_bind-returns-nrf_error_not_found" /><item><title>RE: access_model_application_bind() returns NRF_ERROR_NOT_FOUND?</title><link>https://devzone.nordicsemi.com/thread/108597?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 11:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3eaf26f7-fd08-40be-a21b-64b796fb0e90</guid><dc:creator>S&amp;#248;renHN</dc:creator><description>&lt;p&gt;I figured out the problem.
&lt;code&gt;access_init()&lt;/code&gt; should be called directly after calling &lt;code&gt;dsm_init()&lt;/code&gt;, or at least before initializing the models.&lt;/p&gt;
&lt;p&gt;The solution to the problem can be seen here:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;dsm_init();
access_init();
...
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;In hindsight, it obvious it should be done like this, because &lt;code&gt;access_model_add()&lt;/code&gt; is called in all the model init functions, and the access layer should itself be initialized before functions can be called to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>