<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Section access with partial reload leads to lock-out in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Section-access-with-partial-reload-leads-to-lock-out/m-p/2453016#M98152</link>
    <description>&lt;P&gt;Good morning experts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found the root cause for the problem I had. In the section access I modified my code and now use the code below&lt;/P&gt;
&lt;P&gt;Section Access;&lt;BR /&gt;Replace NoConcatenate Load&lt;BR /&gt;*&lt;BR /&gt;Resident ACCESS_TABLE&lt;BR /&gt;;&lt;BR /&gt;Section Application;&lt;/P&gt;
&lt;P&gt;Call DropTable('ACCESS_TABLE');&lt;/P&gt;
&lt;P&gt;and now, the problem is gone and the reload does, what it is supposed to do. So it looks like in the partial reload, the NoConcatenate is needed to make sure, the data is written into the correct target (=section access table).&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 06:35:52 GMT</pubDate>
    <dc:creator>dirk_fischer</dc:creator>
    <dc:date>2024-05-16T06:35:52Z</dc:date>
    <item>
      <title>Section access with partial reload leads to lock-out</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-partial-reload-leads-to-lock-out/m-p/2452741#M98110</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we are using a partial reload to update the section access of an app. This has been working nicely yesterday, but all of a sudden, it does not work any longer.&lt;/P&gt;
&lt;P&gt;We are doing a sign-in procedure to sign-in at the shift of a machine. We are writing the result of the OSUser() as crew member and then, we want to update the section access, so that the assigned users have each access to the data of the machine, they are signed in. I have attached the code of the sub, I'm using. If I run this code in a full reload, it works as expected.&lt;/P&gt;
&lt;P&gt;If I run it in a partial reload and I want to sign-in, it fails with an Error: Unknown LOAD statement error. If I then execute it in a full load, it works as expected.&lt;/P&gt;
&lt;P&gt;If I run it in a partial reload and I want to sign-out, it does not fail, but I don't have access to the app afterwards anymore. Here it is the same, if I execute the code in a full load, it works as expected.&lt;/P&gt;
&lt;P&gt;Does anybody have an idea, what is causing this and how to overcome the problem?&lt;/P&gt;
&lt;P&gt;Already in advance, I want to thank you for your support.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;
&lt;P&gt;Sub ActivateSectionAccess&lt;BR /&gt;vStartOfSub = Now();&lt;BR /&gt;Let vTraceMsg = 'Start of sub activateSectionAccess at ' &amp;amp; Timestamp('$(vStartOfSub)', 'YYYY-MM-DD hh:mm:ss');&lt;BR /&gt;Trace '$(vTraceMsg)';&lt;BR /&gt;&lt;BR /&gt;Call DropTable('ACCESS_TABLE');&lt;BR /&gt;&lt;BR /&gt;Call TraceBeforeTableOp('Adding the default users to table ACCESS_TABLE', 'ACCESS_TABLE');&lt;BR /&gt;ACCESS_TABLE:&lt;BR /&gt;Add Load&lt;BR /&gt;ACCESS &lt;BR /&gt;,USERID&lt;BR /&gt;,REDUCTION&lt;BR /&gt;Inline [ACCESS, USERID, REDUCTION&lt;BR /&gt;ADMIN, INTERNAL\SA_REPOSITORY,&lt;BR /&gt;ADMIN, INTERNAL\SA_SCHEDULER,&lt;BR /&gt;ADMIN, INTERNAL\SA_API,&lt;BR /&gt;ADMIN, ACCOUNTS\ADMHUETTMAC,&lt;BR /&gt;ADMIN, ACCOUNTS\HUETTMAC,&lt;BR /&gt;USER, *, SHIFTS_OF_TODAY&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;Call TraceAfterTableOp('Adding the default users to table ACCESS_TABLE', 'ACCESS_TABLE');&lt;BR /&gt;&lt;BR /&gt;If FieldNumber('USER_CREW_MEMBER', 'FACT_TABLE') &amp;gt; 0 Then&lt;BR /&gt;Call DropTable('TEMP');&lt;BR /&gt;Call TraceBeforeTableOp('Extracting all users, who are signed-in to a shift of a machine', 'TEMP');&lt;BR /&gt;TEMP:&lt;BR /&gt;Add NoConcatenate Load Distinct&lt;BR /&gt;'USER' As ACCESS&lt;BR /&gt;,'ACCOUNTS\' &amp;amp; Upper(USER_CREW_MEMBER) As USERID&lt;BR /&gt;,%ID_SAP_WORKPLACE&lt;BR /&gt;Resident FACT_TABLE&lt;BR /&gt;Where WildMatch(Num(%ID_DATASOURCE), 302)&lt;BR /&gt;And&lt;BR /&gt;Len(USER_CREW_MEMBER)&lt;BR /&gt;And&lt;BR /&gt;IsNull(TIMESTAMP_SIGN_OUT)&lt;BR /&gt;And&lt;BR /&gt;Len([%ID_SAP_WORKPLACE])&lt;BR /&gt;;&lt;BR /&gt;Call TraceAfterTableOp('Extracting all users, who are signed-in to a shift of a machine', 'TEMP');&lt;BR /&gt;&lt;BR /&gt;Call TraceBeforeTableOp('Adding all possible datasources from table FACT_TABLE to table TEMP', 'TEMP');&lt;BR /&gt;Left Join (TEMP)&lt;BR /&gt;Add Load Distinct&lt;BR /&gt;[%ID_DATASOURCE]&lt;BR /&gt;Inline [%ID_DATASOURCE&lt;BR /&gt;OEE_SHEET_EVENTS&lt;BR /&gt;SHIFTS_OF_TODAY&lt;BR /&gt;MACHINE_STATE&lt;BR /&gt;NETPLAN_CONFIG&lt;BR /&gt;]&lt;BR /&gt;;&lt;BR /&gt;Call TraceAfterTableOp('Adding all possible datasources from table FACT_TABLE to table TEMP', 'TEMP');&lt;BR /&gt;&lt;BR /&gt;Call TraceBeforeTableOp('Adding the necessary REDUCTION values for all users, who are signed-in, to table TEMP', 'TEMP');&lt;BR /&gt;Inner Join (TEMP)&lt;BR /&gt;Add Load Distinct&lt;BR /&gt;USERID&lt;BR /&gt;,[%ID_DATASOURCE] &amp;amp; '_' &amp;amp; [%ID_SAP_WORKPLACE] As REDUCTION&lt;BR /&gt;Resident TEMP&lt;BR /&gt;;&lt;BR /&gt;Call TraceAfterTableOp('Adding the necessary REDUCTION values for all users, who are signed-in, to table TEMP', 'TEMP');&lt;BR /&gt;&lt;BR /&gt;Call TraceBeforeTableOp('Adding the all datasets from table TEMP to table ACCESS_TABLE', 'ACCESS_TABLE');&lt;BR /&gt;Concatenate (ACCESS_TABLE)&lt;BR /&gt;Add Load Distinct&lt;BR /&gt;ACCESS&lt;BR /&gt;,USERID&lt;BR /&gt;,REDUCTION&lt;BR /&gt;Resident TEMP&lt;BR /&gt;;&lt;BR /&gt;Call TraceAfterTableOp('Adding the all datasets from table TEMP to table ACCESS_TABLE', 'ACCESS_TABLE');&lt;BR /&gt;&lt;BR /&gt;Call DropTable('TEMP');&lt;BR /&gt;Else&lt;BR /&gt;Let vTraceMsg = 'The field USER_CREW_MEMBER does not exist in the table FACT_TABLE, there are no signed-in users to add to the ACCESS_TABLE';&lt;BR /&gt;Trace '$(vTraceMsg)';&lt;BR /&gt;End If&lt;/P&gt;
&lt;P&gt;Section Access;&lt;BR /&gt;Replace Load&lt;BR /&gt;*&lt;BR /&gt;Resident ACCESS_TABLE&lt;BR /&gt;;&lt;BR /&gt;Section Application;&lt;/P&gt;
&lt;P&gt;Call DropTable('ACCESS_TABLE');&lt;/P&gt;
&lt;P&gt;Let vTraceMsg = 'End of sub activateSectionAccess - execution took ' &amp;amp; Interval(RangeSum(Now(), -Num('$(vStartOfSub)')), 'hh:mm:ss');&lt;BR /&gt;Trace '$(vTraceMsg)';&lt;BR /&gt;End Sub&lt;/P&gt;
&lt;P&gt;20240515T151405.489+0200 0149 Section Access&lt;BR /&gt;20240515T151405.489+0200 0150 Replace Load&lt;BR /&gt;20240515T151405.489+0200 0151 *&lt;BR /&gt;20240515T151405.489+0200 0152 Resident ACCESS_TABLE&lt;BR /&gt;20240515T151405.489+0200 3 fields found: ACCESS, USERID, REDUCTION, &lt;BR /&gt;20240515T151405.490+0200 Error: Unknown LOAD statement error&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 13:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-partial-reload-leads-to-lock-out/m-p/2452741#M98110</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2024-05-15T13:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Section access with partial reload leads to lock-out</title>
      <link>https://community.qlik.com/t5/App-Development/Section-access-with-partial-reload-leads-to-lock-out/m-p/2453016#M98152</link>
      <description>&lt;P&gt;Good morning experts&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found the root cause for the problem I had. In the section access I modified my code and now use the code below&lt;/P&gt;
&lt;P&gt;Section Access;&lt;BR /&gt;Replace NoConcatenate Load&lt;BR /&gt;*&lt;BR /&gt;Resident ACCESS_TABLE&lt;BR /&gt;;&lt;BR /&gt;Section Application;&lt;/P&gt;
&lt;P&gt;Call DropTable('ACCESS_TABLE');&lt;/P&gt;
&lt;P&gt;and now, the problem is gone and the reload does, what it is supposed to do. So it looks like in the partial reload, the NoConcatenate is needed to make sure, the data is written into the correct target (=section access table).&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dirk&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 06:35:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Section-access-with-partial-reload-leads-to-lock-out/m-p/2453016#M98152</guid>
      <dc:creator>dirk_fischer</dc:creator>
      <dc:date>2024-05-16T06:35:52Z</dc:date>
    </item>
  </channel>
</rss>

