Quantcast
Channel: UiPath Community Forum - Topics tagged error
Viewing all articles
Browse latest Browse all 4384

Sql, Data Table issue: "Execute query : Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints."

$
0
0

@hvanderborg wrote:

Scenario:

When executing a query I’m getting this error when I try to get a column containing a string:
**Execute query : Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.**

Being completely new to UiPath, I did not yet find out how to disable these constraints.

Steps to reproduce:

My flow is as follows:

  1. Connect -> 2)execute query -> 3)For each row (where I use write line row(0).ToString)

  2. My connection is an ODBC source

  3. For testing my query is as simple as: “SELECT productname FROM products”
    This works fine on some columns but many (string) columns result in the error.

I tried adjusting the flow to first set a type for a column name:
Connect -> Build Data Table -> Execute query -> For each row
In ‘Build Data Table’ I added 1 column of string type with column name “productname” (the one I use in the query). This did not solve the error.

Studio/Robot/Orchestrator Version:

UiPath Studio Community Version 2016.2.6344 Stable

OS Version: Windows Server 2012 R2 Standard 64-bit. .NET 4.0.30319.42000

Hopefully someone can point me in the right direction, or can make some suggestions what to check

Posts: 6

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>