<?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>Question Re: Migration from Informix to PostgreSQL in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638316#M4741009</link>
    <description>&lt;P&gt;Please create a PostgreSQL ODBC DSN with a &lt;U&gt;&lt;STRONG&gt;different&lt;/STRONG&gt;&lt;/U&gt; name.&lt;BR /&gt;Open the report in Crystal Designer and use &lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Database, Set Datasource Location...&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;to change the data source to the new DSN.&lt;BR /&gt;&lt;BR /&gt;If that manual process fixes the issue, there are ways to automate it.&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Jul 2022 17:59:59 GMT</pubDate>
    <dc:creator>ido_millet</dc:creator>
    <dc:date>2022-07-24T17:59:59Z</dc:date>
    <item>
      <title>Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaq-p/12638315</link>
      <description>&lt;P&gt;RPT designed for Informix does not work with PostgreSQL.&lt;/P&gt;
  &lt;P&gt;Detail:&lt;/P&gt;
  &lt;P&gt;I am using Crystal 2020 to design RPT files. Initially RPTs were designed for Informix database and linked Informix stored procedure into the report. &lt;/P&gt;
  &lt;P&gt;Then we wrote a C# application to load RPT files and dynamically loaded Informix ODBC Data Source to print the report. Report printed successfully and no issue at all with Informix. Similarly we have designed 500 reports and all were working perfectly with Informix ODBC driver data source.&lt;/P&gt;
  &lt;P&gt;Now the requirement is changed and customer want to use PostgreSQL database. We used same RPTs designed for Informix and provided PostgreSQL ODBC data source in C# application and then tried to print reports but all the reports are empty. My understanding is that the Crystal report is database independent and same RPT file will work with all databases if we dynamically providing/loading ODBC data source (DSN). &lt;/P&gt;
  &lt;P&gt;I tried to figure out the root cause and opened RPT in Crystal 2020 and linked similar function from PostgreSQL. Now I noticed that the returned fields name from stored procedure does not have any suffix ":n" while ":n" suffix is added to the field names returned by the Informix's stored procedures. And I think Crystal RPT expect exact same field name with suffix (:1,:2,:3..) in report to display because same fields are used in report to display. To make Informix's RPT work with PostgreSQL I have to manually replace all field name in RPT with new one (like &lt;STRONG&gt;ddr_key1:1&lt;/STRONG&gt; to &lt;STRONG&gt;ddr_key1 &lt;/STRONG&gt;and &lt;STRONG&gt;batch_key1:1 &lt;/STRONG&gt;to&lt;STRONG&gt; batch_key1)&lt;/STRONG&gt; &lt;/P&gt;
  &lt;P&gt;Attaching Screenshot: &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2076645-image.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Please help me to design a universal RPT which could work with all Data Bases or could print crystal report after dynamically loading any ODBC data Source from different database. I am not sure if that possible with Crystal Report.&lt;/P&gt;
  &lt;P&gt;So the point is I don't want to redesign all 500+ reports again or replace field name everywhere in each and every RPT files which were designed for Informix and were working perfectly with Informix.&lt;/P&gt;
  &lt;P&gt;I want to design single RPT file that could work with all databases without any major changes or redesigning RPTs.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 17:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaq-p/12638315</guid>
      <dc:creator>former_member733560</dc:creator>
      <dc:date>2022-07-24T17:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638316#M4741009</link>
      <description>&lt;P&gt;Please create a PostgreSQL ODBC DSN with a &lt;U&gt;&lt;STRONG&gt;different&lt;/STRONG&gt;&lt;/U&gt; name.&lt;BR /&gt;Open the report in Crystal Designer and use &lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Database, Set Datasource Location...&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;to change the data source to the new DSN.&lt;BR /&gt;&lt;BR /&gt;If that manual process fixes the issue, there are ways to automate it.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 17:59:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638316#M4741009</guid>
      <dc:creator>ido_millet</dc:creator>
      <dc:date>2022-07-24T17:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638317#M4741010</link>
      <description>&lt;P&gt;I have already tried that and that worked after making changes in RPT file. For that I would need to redesign all 500+ RPTs for PostgreSQL that's what I don't want (I don't know how to automate that).&lt;/P&gt;&lt;P&gt;So the point is I don't want to redesign all 500+ reports again which were already designed for Informix and were working perfectly with Informix.&lt;/P&gt;&lt;P&gt;I want to design single RPT file that could work with all databases without major changes or redesigning RPTs.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 22:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638317#M4741010</guid>
      <dc:creator>former_member733560</dc:creator>
      <dc:date>2022-07-24T22:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638318#M4741011</link>
      <description>&lt;P&gt;There are 3rd-party utilities that can mass-update the data source, so you don't have to repeat this manual procedure across hundreds of reports. &lt;/P&gt;&lt;P&gt;Ken Hamady maintains a list of 3rd-party Crystal Reports Management Utilities &lt;A href="https://kenhamady.com/productlinks/default.html#doc" target="_blank"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Here is a &lt;A href="https://youtu.be/PdLy17PLg-4" target="_blank"&gt;video demo&lt;/A&gt; of how my Visual CUT software mass updates the data source of multiple reports. &lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 22:46:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638318#M4741011</guid>
      <dc:creator>ido_millet</dc:creator>
      <dc:date>2022-07-24T22:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638319#M4741012</link>
      <description>&lt;P&gt;Providing data source is not an issue. I am providing that dynamically through C# code using class "CrystalDecisions.Shared.ConnectionInfo" and able to connect to both Informix or PostgreSQL.&lt;/P&gt;&lt;P&gt;But the point is, the field returned by stored procedure is used in formulas and in reports. Those field name are different in Informix (with suffix ":n") and PostgreSQL and I think that's why crystal failed to populates these field values for PostgreSQL when use the same RPT designed for Informix. &lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2076644-image.png" /&gt;&lt;/P&gt;&lt;P&gt;To make Informix's RPT work with PostgreSQL I have to replace all return fields like ddr_key1:1 =&amp;gt; ddr_key1 and batch_key1:2 =&amp;gt; batch_key1.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2022 23:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638319#M4741012</guid>
      <dc:creator>former_member733560</dc:creator>
      <dc:date>2022-07-24T23:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638320#M4741013</link>
      <description>&lt;P&gt;You should be able to using ReplaceConnection() API if Ido's solution does not work for you.&lt;/P&gt;&lt;P&gt;Use Google and search for it, there are KBA's on how to use it.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 15:04:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638320#M4741013</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2022-07-25T15:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Migration from Informix to PostgreSQL</title>
      <link>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638321#M4741014</link>
      <description>&lt;P&gt;What happens if you replace the connection in CR Designer?&lt;/P&gt;&lt;P&gt;If it works without the Field Mapping UI popup then ReplaceConnection should work for you.&lt;/P&gt;&lt;P&gt;If the Field MApping UI pop's up then only option is to fix each report manually.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/migration-from-informix-to-postgresql/qaa-p/12638321#M4741014</guid>
      <dc:creator>former_member11696</dc:creator>
      <dc:date>2022-08-10T14:56:51Z</dc:date>
    </item>
  </channel>
</rss>

