<!-- 
RSS generated by JIRA (1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d) at Thu Feb 08 23:13:48 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>FOLIO Jira</title>
    <link>https://folio-org.atlassian.net</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>1001.0.0-SNAPSHOT</version>
        <build-number>100246</build-number>
        <build-date>07-02-2024</build-date>
    </build-info>

<item>
            <title>[FOLIO-1500] Environment builds fail due to invalid fiscal year sample record</title>
                <link>https://folio-org.atlassian.net/browse/FOLIO-1500</link>
                <project id="10290" key="FOLIO">FOLIO</project>
                    <description>&lt;p&gt;Overnight, both the &lt;a href=&quot;https://jenkins-aws.indexdata.com/job/Automation/job/folio-testing-backend01/509/console&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;folio-testing&lt;/a&gt; and &lt;a href=&quot;https://jenkins-aws.indexdata.com/job/Automation/job/folio-snapshot/372/console&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;folio-snapshot&lt;/a&gt; backend builds failed.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Summary&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The fiscal year schema in mod-finance no longer has properties which are used in the sample record, meaning this fails to be created (with a 422 error, which is ignored). This then leads to other records failing to be created with 500 errors, which stop the build.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Temporary Resolution&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ve raised 
    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;MODFIN-37&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/MODFIN-37&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Mismatch between fiscal year schema and sample record&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium&quot; /&gt;
            MODFIN-37
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
 and issued a &lt;a href=&quot;https://github.com/folio-org/mod-finance/pull/19&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;pull request&lt;/a&gt; to remove these properties.&lt;/p&gt;

&lt;p&gt;Whether this should be the permanent resolution depends upon whether these properties were intentionally removed (in which case, this is a compatibility breaking change rather than a bug).&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Symptoms&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Multiple failures similar to the below appear in the logs for the environment builds.&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
failed: [10.36.1.205] (item=/tmp/ansible.BURDoC/mod-finance/sample-data/budgets/ENDOW-SUBN-FY19.json) =&amp;gt; {&lt;span class=&quot;code-quote&quot;&gt;&quot;accept&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;application/json, text/plain&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;accept_encoding&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;identity&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;authtoken_refresh_cache&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;changed&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;connection&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;close&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;content&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;ErrorMessage(fields=Map(Detail -&amp;gt; Key (fiscal_year_id)=(684b5dc5-92f6-4db7-b996-b549d88f5e4e) is not present in table \&quot;&lt;/span&gt;fiscal_year\&lt;span class=&quot;code-quote&quot;&gt;&quot;., s -&amp;gt; diku_mod_finance, n -&amp;gt; budget_fiscal_year_id_fkey, t -&amp;gt; budget, Line -&amp;gt; 3269, File -&amp;gt; ri_triggers.c, SQLSTATE -&amp;gt; 23503, Routine -&amp;gt; ri_ReportViolation, V -&amp;gt; ERROR, Message -&amp;gt; insert or update on table \&quot;&lt;/span&gt;budget\&lt;span class=&quot;code-quote&quot;&gt;&quot; violates foreign key constraint \&quot;&lt;/span&gt;budget_fiscal_year_id_fkey\&lt;span class=&quot;code-quote&quot;&gt;&quot;, Severity -&amp;gt; ERROR))&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;content_type&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;text/plain&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;data_file&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;/tmp/ansible.BURDoC/mod-finance/sample-data/budgets/ENDOW-SUBN-FY19.json&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;failed&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;host&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;10.36.1.205:9130&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;msg&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;Status code was not [201, 422]: HTTP Error 500: Internal Server Error&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;redirected&quot;&lt;/span&gt;: &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;status&quot;&lt;/span&gt;: 500, &lt;span class=&quot;code-quote&quot;&gt;&quot;transfer_encoding&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;chunked&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;url&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;http:&lt;span class=&quot;code-comment&quot;&gt;//10.36.1.205:9130/budget&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;user_agent&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;ansible-httpget&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_permissions&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;[\&quot;&lt;/span&gt;budget.item.post\&lt;span class=&quot;code-quote&quot;&gt;&quot;]&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_request_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;322206/budget&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_tenant&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;diku&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_token&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJkaWt1X2FkbWluIiwidXNlcl9pZCI6Ijg3N2MzYTZmLTY2ZjMtNTQzNC04ZGM5LWNmNWYzNTFjZDhjZiIsImlhdCI6MTUzNjk3Njk0NSwidGVuYW50IjoiZGlrdSJ9.YtAKyFzcOjuzpyJTQ6Ag3jtP0BG4mpDDWFwzVX6qUgI&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_trace&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;POST mod-authtoken-2.0.2-SNAPSHOT.28 http://10.36.1.205:9131/budget : 202 248569us, POST mod-finance-1.0.1-SNAPSHOT.25 http://10.36.1.205:9151/budget : 500 90365us&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_url&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;http://10.36.1.205:9130&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;x_okapi_user_id&quot;&lt;/span&gt;: &lt;span class=&quot;code-quote&quot;&gt;&quot;877c3a6f-66f3-5434-8dc9-cf5f351cd8cf&quot;&lt;/span&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;b&gt;Investigation&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;I believe the sample data loading &lt;a href=&quot;https://github.com/folio-org/folio-ansible/blob/ed9d7a9065d00017e0343996c8f4d583bed91fef/roles/module-sample-data/tasks/load-data.yml#L15&quot; class=&quot;external-link&quot; rel=&quot;nofollow noreferrer&quot;&gt;counts 422 status codes as success&lt;/a&gt; and so the fiscal year sample record is seen as successful:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
TASK [folio-ansible/roles/module-sample-data : Load module data to /fiscal_year] ***
ok: [10.36.1.205] =&amp;gt; (item=/tmp/ansible.BURDoC/mod-finance/sample-data/fiscal-years/fy1.json)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Ledgers also have references to fiscal years, however these are not enforced by foreign keys (as these are not supported for arrays at present).&lt;/p&gt;

&lt;p&gt;Therefore budgets are where this error first appears.&lt;/p&gt;</description>
                <environment></environment>
        <key id="80841">FOLIO-1500</key>
            <summary>Environment builds fail due to invalid fiscal year sample record</summary>
                <type id="10001" iconUrl="https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium">Bug</type>
                                            <priority id="10001" iconUrl="https://dev.folio.org/assets/jira-priority/jira-p2.svg">P2</priority>
                        <status id="6" iconUrl="https://folio-org.atlassian.net/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10003">Done</resolution>
                                                        <assignee accountid="5c706fbb47a54a6728e59df2">Wayne Schneider</assignee>
                                                                <reporter accountid="63e2a2771b13d42998e4e706">Marc Johnson</reporter>
                                    <labels>
                            <label>ci</label>
                            <label>devops</label>
                            <label>sprint46</label>
                            <label>sprint47</label>
                    </labels>
                <created>Sat, 15 Sep 2018 10:15:08 +0000</created>
                <updated>Mon, 12 Nov 2018 14:25:04 +0000</updated>
                            <resolved>Tue, 18 Sep 2018 16:33:02 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                <comments>
                                                            <comment id="195883" author="5c706fbb47a54a6728e59df2" created="Sat, 15 Sep 2018 15:45:31 +0000"  >&lt;p&gt;Thanks for the update and sleuthing, &lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=63e2a2771b13d42998e4e706&quot; class=&quot;user-hover&quot; rel=&quot;63e2a2771b13d42998e4e706&quot; data-account-id=&quot;63e2a2771b13d42998e4e706&quot; accountid=&quot;63e2a2771b13d42998e4e706&quot; rel=&quot;noreferrer&quot;&gt;Marc Johnson&lt;/a&gt;. Parsing error codes for data loading is problematic, as most RMB endpoints report a 422 for a duplicate record. I&apos;ve raised 
    &lt;span class=&quot;jira-issue-macro&quot; data-jira-key=&quot;FOLIO-1501&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/FOLIO-1501&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;folio-ansible: data load error parsing&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium&quot; /&gt;
            FOLIO-1501
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-complete jira-macro-single-issue-export-pdf&quot;&gt;Open&lt;/span&gt;
            &lt;/span&gt;
 to capture that issue.&lt;/p&gt;

&lt;p&gt;In the meantime, we can temporarily update the build playbook in folio-ansible and folio-infrastructure to omit the finance data load, until 
    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;MODFIN-37&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/MODFIN-37&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Mismatch between fiscal year schema and sample record&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium&quot; /&gt;
            MODFIN-37
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
 is resolved.&lt;/p&gt;</comment>
                                                            <comment id="195884" author="5c706fbb47a54a6728e59df2" created="Sat, 15 Sep 2018 22:18:35 +0000"  >&lt;p&gt;We have rebuilt folio-snapshot and folio-testing without finance sample data, for the moment, until 
    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;MODFIN-37&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/MODFIN-37&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Mismatch between fiscal year schema and sample record&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium&quot; /&gt;
            MODFIN-37
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
 is resolved. This allows us to continue integration testing for the rest of the system.&lt;/p&gt;</comment>
                                                            <comment id="195886" author="63e2a2771b13d42998e4e706" created="Mon, 17 Sep 2018 11:16:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://folio-org.atlassian.net/secure/ViewProfile.jspa?accountId=5c706fbb47a54a6728e59df2&quot; class=&quot;user-hover&quot; rel=&quot;5c706fbb47a54a6728e59df2&quot; data-account-id=&quot;5c706fbb47a54a6728e59df2&quot; accountid=&quot;5c706fbb47a54a6728e59df2&quot; rel=&quot;noreferrer&quot;&gt;Wayne Schneider&lt;/a&gt; Thanks.&lt;/p&gt;

&lt;p&gt;The reference to 422 status codes was primarily intended to help my recall (and describe my thought process) if I look back at previous issues, rather than a critique or a prompt to change the behaviour.&lt;/p&gt;</comment>
                                                            <comment id="195888" author="5c706fbb47a54a6728e59df2" created="Tue, 18 Sep 2018 16:33:02 +0000"  >&lt;p&gt;The PR that addresses 
    &lt;span class=&quot;jira-issue-macro resolved&quot; data-jira-key=&quot;MODFIN-37&quot; &gt;
                &lt;a href=&quot;https://folio-org.atlassian.net/browse/MODFIN-37&quot; class=&quot;jira-issue-macro-key issue-link&quot;  title=&quot;Mismatch between fiscal year schema and sample record&quot; &gt;
            &lt;img class=&quot;icon&quot; src=&quot;https://folio-org.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium&quot; /&gt;
            MODFIN-37
        &lt;/a&gt;
                                                    &lt;span class=&quot;aui-lozenge aui-lozenge-subtle aui-lozenge-success jira-macro-single-issue-export-pdf&quot;&gt;Closed&lt;/span&gt;
            &lt;/span&gt;
 has been merged and resolves this issue.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="70899">MODFIN-37</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10003">
                    <name>Relates</name>
                                            <outwardlinks description="relates to">
                                        <issuelink>
            <issuekey id="79512">FOLIO-1501</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10000" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummarycf">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10019" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|hzyvcf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10020" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10024" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>[CHART] Date of First Response</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 15 Sep 2018 15:45:31 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10025" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>[CHART] Time in Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>