<?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: Workflow Auto Generated Document number in Windchill</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222509#M26643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is assuming Oracle database. The difference between the desired next number and the current next number is (3000-64 = 2936).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14250025149928195" jivemacro_uid="_14250025149928195"&gt;
&lt;P&gt;ALTER SEQUENCE WTCHANGEREQUESTID_seq INCREMENT BY 2936;&lt;/P&gt;
&lt;P&gt;SELECT WTCHANGEREQUESTID_seq.nextval FROM dual;&lt;/P&gt;
&lt;P&gt;ALTER SEQUENCE WTCHANGEREQUESTID_seq INCREMENT BY 1;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, test it. I might be off by 1 number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite perplexed as to why these sequences aren't set up OOTB as NOCACHE. I continuously hear of admins complaining about number sequences jumping by 20 (the default cache value) sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some references:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS113612" title="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS113612"&gt;https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS113612&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS124192" title="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS124192"&gt;https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS124192&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS133468" title="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS133468"&gt;https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS133468&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptcusercommunity.com/docs/DOC-2463"&gt;Creating a number Sequence in Windchill - Gotcha&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI...I have never created the sequence with the exec.wtpk.createSequence() command. Instead, I've always used the CREATE SEQUENCE ... command with correct parameters (including NOCACHE at the end of the statement). I don't know of the difference between the 2 methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Feb 2015 02:03:33 GMT</pubDate>
    <dc:creator>BenPerry</dc:creator>
    <dc:date>2015-02-27T02:03:33Z</dc:date>
    <item>
      <title>Workflow Auto Generated Document number</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222505#M26639</link>
      <description>In the OOTB Change Request workflow, we have the number field set to Auto generate.In the OIR for Change Request, we have the following lines for the number field.&amp;lt;AttrValue id = "number"algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"ignore="false"</description>
      <pubDate>Fri, 04 May 2018 13:33:05 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222505#M26639</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2018-05-04T13:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Auto Generated Document number</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222506#M26640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this on the DB (log into SQLPlus):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14249855957013881" jivemacro_uid="_14249855957013881"&gt;
&lt;P&gt;ALTER SEQUENCE WTCHANGEREQUESTID_seq NOCACHE;&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you able to confirm on a test system first?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 21:20:35 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222506#M26640</guid>
      <dc:creator>BenPerry</dc:creator>
      <dc:date>2015-02-26T21:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Auto Generated Document number</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222507#M26641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try that on my test system.&lt;/P&gt;&lt;P&gt;I would guess that other numbers could also be changed to be sequential by doing the same nocache alteration.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 21:36:37 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222507#M26641</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2015-02-26T21:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Auto Generated Document number</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222508#M26642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I alter the initial starting number to 3000?&lt;/P&gt;&lt;P&gt;It is currently at 63 and when I tried to edit it in the Oracle Console, it said start number cannot exceed current number. Current number could not be editted in the console.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2015 22:14:58 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222508#M26642</guid>
      <dc:creator>BenLoosli</dc:creator>
      <dc:date>2015-02-26T22:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Workflow Auto Generated Document number</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222509#M26643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is assuming Oracle database. The difference between the desired next number and the current next number is (3000-64 = 2936).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="sql" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14250025149928195" jivemacro_uid="_14250025149928195"&gt;
&lt;P&gt;ALTER SEQUENCE WTCHANGEREQUESTID_seq INCREMENT BY 2936;&lt;/P&gt;
&lt;P&gt;SELECT WTCHANGEREQUESTID_seq.nextval FROM dual;&lt;/P&gt;
&lt;P&gt;ALTER SEQUENCE WTCHANGEREQUESTID_seq INCREMENT BY 1;&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, test it. I might be off by 1 number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am quite perplexed as to why these sequences aren't set up OOTB as NOCACHE. I continuously hear of admins complaining about number sequences jumping by 20 (the default cache value) sometimes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some references:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS113612" title="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS113612"&gt;https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS113612&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS124192" title="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS124192"&gt;https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS124192&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS133468" title="https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS133468"&gt;https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS133468&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptcusercommunity.com/docs/DOC-2463"&gt;Creating a number Sequence in Windchill - Gotcha&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI...I have never created the sequence with the exec.wtpk.createSequence() command. Instead, I've always used the CREATE SEQUENCE ... command with correct parameters (including NOCACHE at the end of the statement). I don't know of the difference between the 2 methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 02:03:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill/Workflow-Auto-Generated-Document-number/m-p/222509#M26643</guid>
      <dc:creator>BenPerry</dc:creator>
      <dc:date>2015-02-27T02:03:33Z</dc:date>
    </item>
  </channel>
</rss>

